package me.aartikov.alligator.converters;


import me.aartikov.alligator.Screen;
import me.aartikov.alligator.helpers.MiFraction;


/**
 * Converts a screen to a fragment and vice versa.
 *
 * @param <ScreenT> screen type
 */
public interface FragmentConverter<ScreenT extends Screen> {


    MiFraction createFragment(ScreenT screen);


    ScreenT getScreen(MiFraction fragment);
}
